import org.junit.Test;

public class DD {

    @Test
    public void dd() {
        String s = "http://www.iteye.com/blogs?page=2";
        String reg = "^http://www.iteye.com/blogs\\?page=[0-9]+$";
        System.out.println(s.matches(reg));
    }

}
